﻿
namespace ZR.Model.Dto.Business.ProductionControl
{
    /// <summary>
    /// 报警记录查询对象
    /// </summary>
    public class CksAlarmRecordQueryDto : PagerInfo
    {
        public string DeviceName { get; set; }
        public string FaultCase {  get; set; }
        public DateTime? BeginTime { get; set; }
        public DateTime? EndTime { get; set; }
    }

    /// <summary>
    /// 报警记录输入输出对象
    /// </summary>
    public class CksAlarmRecordDto
    {
        [Required(ErrorMessage = "Id不能为空")]
        public long Id { get; set; }

        [Required(ErrorMessage = "设备名称不能为空")]
        public string DeviceName { get; set; }

        [Required(ErrorMessage = "报警地址不能为空")]
        public string SignalAddress { get; set; }

        public DateTime? StartTime { get; set; }

        public DateTime? EndTime { get; set; }

        [Required(ErrorMessage = "报警代码不能为空")]
        public string AlarmCode { get; set; }

        [Required(ErrorMessage = "故障原因不能为空")]
        public string FaultCase { get; set; }

        [Required(ErrorMessage = "解决方法不能为空")]
        public string Solution { get; set; }

        [Required(ErrorMessage = "状态 1报警中 2报警已消除不能为空")]
        public int Status { get; set; }

        [Required(ErrorMessage = "禁用状态不能为空")]
        public bool Nullity { get; set; }

        [Required(ErrorMessage = "创建时间不能为空")]
        public DateTime? CreatedTime { get; set; }

        [Required(ErrorMessage = "是否删除不能为空")]
        public bool IsDeleted { get; set; }



        [ExcelColumn(Name = "状态 1报警中 2报警已消除")]
        public string StatusLabel { get; set; }
    }
}